
#写不出来！，请教老师~麻烦老师讲得详细一些；

#自动存取款机系统

# 定义存放账户信息列表的变量
memberList=[
    {"name":"000001","password":111111,"totalmoney":1000},
    {"name":"000002","password":222222,"totalmoney":100},
    {"name":"000003","password":333333,"totalmoney":1500},
    {"name":"000004","password":333333,"totalmoney":3000}
]



# 登陆系统
while True:
    # 输出初始界面
    print("\n","=" * 10, "CSDN自动存取款机", "=" * 10)
    print("{:12}{:12}".format("1.查询余额", "2.存款"))
    print("{:14}{:12}".format("3.取款", "4.退出"))
    print("=" * 34)
    # 根据用户输入，执行对应的操作
    key = input("请输入您的选择：")

    if key=="1":
        print("="*8,"查询余额","="*8)
        print("当前账户余额：")

    elif key=="2":
        print("="*8,"存款","="*8)
        print("请输入你需要存入的金额：")
        add={}
		add["totalmoney"]=input("请输入你的存款金额")
		memberList.append(int(totalmoney) +int(add))

    elif key=="3":
        print("="*8,"取款","="*8)
        minusMoney(memberIndex)

    elif key=="4":
        print("="*8,"退出","="*8)
        break
    else:
		print("========无效的按钮========")